<script setup>
import { ref } from 'vue';
// 导入子组件
import Child from './components/Child.vue';

const money = ref(100000000);

// 接收子组件传递的数据
const yyy = (msg) => {
  console.log('父组件接收到的数据', msg);
};
</script>

<template>
  <div>
    <Child @giveMoney="yyy" :money="money" :obj="{ age: 100 }" />
  </div>
</template>
